package com.musicstore.biz.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.musicstore.biz.UserBiz;
import com.musicstore.dao.UserDao;
import com.musicstore.entity.UserEntity;
@Service("userBiz")
public class UserBizImpl implements UserBiz {
	@Autowired
	private UserDao userDao;
	
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public void register(UserEntity user) {
		userDao.register(user);
	}

	public UserEntity dologin(String userName, String passWord) {
		return userDao.dologin(userName, passWord);
	}

	public int checkUserName(String userName) {
		return userDao.checkUserName(userName);
	}

}
